# -*- coding: utf-8 -*- 
#
# Description:
#
#  Definiton
#
#
#
# Changes:
#
# 2012-01-10
# Initial Commit
#
#
# Copyright 2010-2012, WyDev Team.
# Author: Polo35 (polo35580@hotmail.fr)
#
# Licenced under Academic Free License version 3.0
# Review WyGui README & LICENSE files for further details.

nname: 0
n 0(None)[return GeneralConfigurationItem(name=_('General'), type_='general', display_type='setup_general', menu=menu)
]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb770564c>}
nname: 6
n 6(None)[depth = 2
translation_dict = UnicodeDict({0: 'Never', 1: 'Always', 2: 'During few seconds'})
]:
	i: 
	o: 

self.nodes: {6: <unpyclib.structure.node instance at 0xb7705ccc>}
nname: 0
n 0(None)[return [CountryUserConfigSetupItem(name='Country', menu=self.menu, domain='base', key='country', choices_list=config.HMI_BASE['country']), OSDLanguageUserConfigSetupItem(name='Language', exec_callback=True, menu=self.menu, domain='base', key='language', choices_list=config.HMI_BASE['osd_languages']), DateParametersContainer(name='Date and Time', type_='setupitem', menu=self.menu), ProtectionParametersSetupItem(name='Access and protections', type_='setupitem', menu=self.menu), HelpUserConfigSetupItem(name='Help banner', type_='setupitem', menu=self.menu, domain='base', key='help_banner', choices_list=range(3))]
]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb770898c>}
nname: 0
n 0(None)[self._name = _('General')
]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb7705c4c>}
nname: 6
n 6(None)[def browse(self):
	return [CountryUserConfigSetupItem(name='Country', menu=self.menu, domain='base', key='country', choices_list=config.HMI_BASE['country']), OSDLanguageUserConfigSetupItem(name='Language', exec_callback=True, menu=self.menu, domain='base', key='language', choices_list=config.HMI_BASE['osd_languages']), DateParametersContainer(name='Date and Time', type_='setupitem', menu=self.menu), ProtectionParametersSetupItem(name='Access and protections', type_='setupitem', menu=self.menu), HelpUserConfigSetupItem(name='Help banner', type_='setupitem', menu=self.menu, domain='base', key='help_banner', choices_list=range(3))]

def update_name(self):
	self._name = _('General')

]:
	i: 
	o: 

self.nodes: {6: <unpyclib.structure.node instance at 0xb770582c>}
nname: 0
n 0(None)[from __future__ import absolute_import
from ...containers import GenericContainer
from .securitysetup import ProtectionParametersSetupItem
from .i18n import OSDLanguageUserConfigSetupItem, CountryUserConfigSetupItem
from .datesetup import DateParametersContainer
from pygui.item.parameters import UserConfigSetupItem
from peewee.debug import PRINT_EXCEPTION
import pygui.config as config
from pygui.facilities import codemapping
from pygui.facilities.l10n import UnicodeDict
def getitem(menu):
	return GeneralConfigurationItem(name=_('General'), type_='general', display_type='setup_general', menu=menu)

class HelpUserConfigSetupItem(UserConfigSetupItem):
	depth = 2
	translation_dict = UnicodeDict({0: 'Never', 1: 'Always', 2: 'During few seconds'})


class GeneralConfigurationItem(GenericContainer):
	def browse(self):
		return [CountryUserConfigSetupItem(name='Country', menu=self.menu, domain='base', key='country', choices_list=config.HMI_BASE['country']), OSDLanguageUserConfigSetupItem(name='Language', exec_callback=True, menu=self.menu, domain='base', key='language', choices_list=config.HMI_BASE['osd_languages']), DateParametersContainer(name='Date and Time', type_='setupitem', menu=self.menu), ProtectionParametersSetupItem(name='Access and protections', type_='setupitem', menu=self.menu), HelpUserConfigSetupItem(name='Help banner', type_='setupitem', menu=self.menu, domain='base', key='help_banner', choices_list=range(3))]

	def update_name(self):
		self._name = _('General')



]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb76fce8c>}
from __future__ import absolute_import
from ...containers import GenericContainer
from .securitysetup import ProtectionParametersSetupItem
from .i18n import OSDLanguageUserConfigSetupItem, CountryUserConfigSetupItem
from .datesetup import DateParametersContainer
from pygui.item.parameters import UserConfigSetupItem
from peewee.debug import PRINT_EXCEPTION
import pygui.config as config
from pygui.facilities import codemapping
from pygui.facilities.l10n import UnicodeDict
def getitem(menu):
	return GeneralConfigurationItem(name=_('General'), type_='general', display_type='setup_general', menu=menu)

class HelpUserConfigSetupItem(UserConfigSetupItem):
	depth = 2
	translation_dict = UnicodeDict({0: 'Never', 1: 'Always', 2: 'During few seconds'})


class GeneralConfigurationItem(GenericContainer):
	def browse(self):
		return [CountryUserConfigSetupItem(name='Country', menu=self.menu, domain='base', key='country', choices_list=config.HMI_BASE['country']), OSDLanguageUserConfigSetupItem(name='Language', exec_callback=True, menu=self.menu, domain='base', key='language', choices_list=config.HMI_BASE['osd_languages']), DateParametersContainer(name='Date and Time', type_='setupitem', menu=self.menu), ProtectionParametersSetupItem(name='Access and protections', type_='setupitem', menu=self.menu), HelpUserConfigSetupItem(name='Help banner', type_='setupitem', menu=self.menu, domain='base', key='help_banner', choices_list=range(3))]

	def update_name(self):
		self._name = _('General')



